<?

$this->breadcrumbs[] = UserModule::t('app', 'Авторизация');

$this->pageTitle = UserModule::t('app', 'Авторизация');

?>
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'login-form',
    'enableAjaxValidation'=>false,
)); ?>

<div class="form">
    
    <div class="row"><?=$form->error($_FORM,'error'); ?></div>
    
    <div class="row">
        <?=$form->labelEx($_FORM,'email'); ?>
        <?=$form->textField($_FORM,'email',array('tabindex'=>1)); ?>
        <?=$form->error($_FORM,'email'); ?>
    </div>
    
    <div class="row">
        <?=$form->labelEx($_FORM,'password'); ?>
        <?=$form->passwordField($_FORM,'password',array('tabindex'=>2)); ?>
        <?=$form->error($_FORM,'password'); ?>
    </div>
    
    <?if($_FORM->isShowAntiSpanCaptcha()){?>
    <div class="row">
        <?=$form->labelEx($_FORM,'verifyCode'); ?>
        <?=$form->textField($_FORM,'verifyCode',array('tabindex'=>3)); ?>
        <?=$form->error($_FORM,'verifyCode'); ?>
    </div>
    <div class="row">
        <?php $this->widget('CCaptcha', array(
            'captchaAction'=>'/site/captcha',
            'showRefreshButton'=>false,
            'clickableImage'=>true,
            'imageOptions' => array(
                'title' => UserModule::t('app', 'Click to reload captcha')
            )
        ));?>
    </div>
    <?}?>
    
    <div class="row">
        <?=$form->checkBox($_FORM,'rememberMe')?> <?=$form->label($_FORM,'rememberMe'); ?>
    </div>
    
    <div class="row">
        <?=CHtml::submitButton(UserModule::t('app', 'Войти'),array('tabindex'=>4)); ?>
    </div>
    
    <div class="row">
        <a href="<?=UserModule::url('forgotpass/do', array(), true)?>"><?=UserModule::t('app', 'Забыли пароль?')?>?</a><br />
        <a href="<?=UserModule::url('registration/do', array(), true)?>"><?=UserModule::t('app', 'Регистрация')?></a>
    </div>
    
</div>
<?php $this->endWidget(); ?>
